package com.android.signhelper.http;

import retrofit2.Retrofit;
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by ikata on 2018/8/6.
 */

public class SignClient {
    public static final String URL_HEAD="https://csust.edu.chsh8j.com/";
    private SignClient()
    {}
    public static MyHttp getInstance()
    {
        return Singleton.retrofit.create(MyHttp.class);
    }
    private static class Singleton{
        private static Retrofit retrofit= new Retrofit.Builder()
                .baseUrl(URL_HEAD)
                .addCallAdapterFactory(RxJava2CallAdapterFactory.create())
                .addConverterFactory(GsonConverterFactory.create())
                .build();


    }
}
